<?php /* Smarty version Smarty3-RC3, created on 2013-10-10 09:53:32
         compiled from ".\templates\vepaariSummery.tpl" */ ?>
<?php /*%%SmartyHeaderCode:314105256791c41c7c4-21281197%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ee8a2e0c02874df32bdc120c60c4a403f5cbe91b' => 
    array (
      0 => '.\\templates\\vepaariSummery.tpl',
      1 => 1374232674,
    ),
  ),
  'nocache_hash' => '314105256791c41c7c4-21281197',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_string_format')) include 'D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sil1\include\Smarty\libs\plugins\modifier.string_format.php';
?><?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }else{ ?>
  <?php $_template = new Smarty_Internal_Template("headerPrint.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>
<form name="form1" action="vepaariSummery.php" method="post">
<div class="contentDiv">
	<table align="center" cellspacing="0" cellpadding="2" style="border:1px solid;">
	   <?php if ($_GET['print']!=1){?>
		<tr>
			<th allign="rignt"><font size="3" color="red"><?php echo $_smarty_tpl->getVariable('l_partyName')->value;?>
</font>|</th>
			<th align="right"><font size="3" color="red"><?php echo $_smarty_tpl->getVariable('l_fine')->value;?>
</font>|</th>
			<th align="right"><font size="3" color="red"><?php echo $_smarty_tpl->getVariable('l_amount')->value;?>
</font></th>
		</tr>
		 <?php }else{ ?>
		 <tr>
			<th><?php echo $_smarty_tpl->getVariable('l_partyName')->value;?>
|</th>
			<th align="right"><?php echo $_smarty_tpl->getVariable('l_fine')->value;?>
|</th>
			<th align="right"><?php echo $_smarty_tpl->getVariable('l_amount')->value;?>
</th>
		</tr>
		  <?php }?>
		<tr>
	  	<td colspan="3"><hr/></td>
	  </tr>
		<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=count($_smarty_tpl->getVariable('party')->value)) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
		<?php if ($_smarty_tpl->getVariable('party')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fine']!=0){?>
		  <tr>
		  	<td><?php echo $_smarty_tpl->getVariable('party')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['name'];?>
</td>
		  	  <?php if ($_smarty_tpl->getVariable('party')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fine']>0){?>
		  	  <td align="right">
		  	   <font color="green"><b>
		  	  <?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('party')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fine'],"%.0f");?>
</b>
		  	  <?php }else{ ?>
		  	  <td align="right"><b><font color="red">
		  	<?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('party')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['fine'],"%.0f");?>
</b>
		  	</td>
		  	<?php }?>
		  	<?php if ($_smarty_tpl->getVariable('party')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['amount']>0){?>
          <td align="right">
		  	  <font color="green"><b>
		  	  <?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('party')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['amount'],"%.0f");?>
</b>
		  	 <?php }else{ ?>
		  	 	<td align="right"> <font color="red"><b>
		  	<?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('party')->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['amount'],"%.0f");?>
</b>
		  	 </td>
		  	 <?php }?>
		  </tr>
		  <tr>
		  	<td colspan="3"><hr/></td>
		  </tr>
		<?php }?>
		<?php endfor; endif; ?>
		<tr>
			<th align="right"><?php echo $_smarty_tpl->getVariable('l_total')->value;?>
</th>
			<?php if ($_smarty_tpl->getVariable('fineTotal')->value>0){?>
			<th align="right"><font color="green"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('fineTotal')->value,"%.0f");?>
</font></th>
			<?php }else{ ?>
			<th align="right"><font color="red"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('fineTotal')->value,"%.0f");?>
</font></th>
			<?php }?>
			<?php if ($_smarty_tpl->getVariable('amountTotal')->value>0){?>
			<th align="right"><font color="green"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('amountTotal')->value,"%.0f");?>
</th>
			<?php }else{ ?>
			<th align="right"><font color="red"><?php echo smarty_modifier_string_format($_smarty_tpl->getVariable('amountTotal')->value,"%.0f");?>
</th>
			<?php }?>
		</tr>
		<?php if ($_GET['print']!=1){?>
    	<div align="right"><a href="vepaariSummery.php?print=1"><font size="4" color="red">Summary Print</font></a></div>
    <?php }else{ ?>
    &nbsp;
   <?php }?>

	</table>
</div>
</form>
<?php if ($_GET['print']!=1){?>
  <?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<?php }?>